//
//  BGAdvertisingController.m
//  bigMall
//
//  Created by ios on 16/9/29.
//  Copyright © 2016年 thinklev. All rights reserved.
//

#import "BGAdvertisingController.h"
#import "BGAdvertisingBacialController.h"

@interface BGAdvertisingController ()

@end

@implementation BGAdvertisingController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    self.title = @"公告";
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (NSArray <NSString *> *)titles {
    
    return @[@"竞标公告",@"中标公告"];
}

- (NSInteger)numbersOfChildControllersInPageController:(WMPageController *)pageController {
    
    self.menuItemWidth = self.view.bounds.size.width / 2;
    self.menuViewStyle = WMMenuViewStyleLine;
    self.titleColorNormal = [UIColor blackColor];
    self.titleColorSelected = [UIColor orangeColor];
    self.titleSizeSelected = 21;
    self.titleSizeNormal = 19;
    self.showOnNavigationBar = NO;
    self.menuHeight = 45;
    self.progressColor = [UIColor orangeColor];
    //    self.scrollView.scrollEnabled = NO;
    
    return self.titles.count;
}

- (NSString *)pageController:(WMPageController *)pageController titleAtIndex:(NSInteger)index {
    
    return self.titles[index];
}

- (UIViewController *)initializeViewControllerAtIndex:(NSInteger)index {
    
    BGAdvertisingBacialController *a = [[BGAdvertisingBacialController alloc] init];
    
    if (index == 0) {
        
        a.type = @"inviteNotice";
        
        return a;
        
    }else {
        
        a.type = @"bidNotice";
        return a;
        
    }
    
}
- (void)viewWillAppear:(BOOL)animated {
    
    self.tabBarController.tabBar.hidden = YES;
    
}

@end
